using System.ComponentModel;

namespace Gateway.Common.Cache;

/// <summary>
/// cache key
/// </summary>
[ScanCacheKeys]
public static class CacheKeys
{
    /// <summary>
    /// 缓存的前缀
    /// </summary>
    public const string CACHE_PREFIX = "GATEWAY:";

    /// <summary>
    /// 用户API权限
    /// </summary>
    [Description("用户API权限")]
    public const string UserCacheApi = CACHE_PREFIX+"apis:";
    
    /// <summary>
    /// 用户权限
    /// </summary>
    [Description("用户权限")]
    public const string UserPermissions=CACHE_PREFIX+"permissions:";
    
    /// <summary>
    /// 上传进度
    /// </summary>
    [Description("上传进度")]
    public const string UploadFileProgress=CACHE_PREFIX+"upload:progress:";


    /// <summary>
    /// 系统常量
    /// </summary>
    public const string SystemConstList = CACHE_PREFIX + "const:list";
    /// <summary>
    /// 系统常量
    /// </summary>
    public const string SystemKeyConstList = CACHE_PREFIX + "const:key:";
}